import { Navigate } from "react-router-dom"
import One from "../../views/ReactRoutersV6/One"
import aRoutes from "./aRoutes"
import { lazy } from "react"
const routes = [
	{
		path: "/",
		component: () => <Navigate to="/one" />
	},
	{
		path: "/one",
		name: 'one',
		component: One,
		meta: {},
		children: aRoutes
	},
	{
		path: "/two",
		name: "two",
		component: lazy(() => import("../../views/ReactRoutersV6/Two")),
		meta: {}
	},
	{
		path: "/third",
		name: "third",
		component: lazy(() => import("../../views/ReactRoutersV6/Third")),
		meta: {}
	},
	{
		path: "*",
		component: <Navigate to="/one?lx=404" />
	}
]

export default routes